<?php if($this->session->flashdata('message_type') != ""): ?>
    <?php if($this->session->flashdata('message_type') == "1"): ?>
        <div class="alert alert-success">
            <i class="fa fa-check-circle"></i> <?php echo $this->session->flashdata('message'); ?>
        </div>
    <?php elseif($this->session->flashdata('message_type') == "0"): ?>
        <div class="alert alert-danger">
            <i class="fa fa-exclamation-triangle"></i> <?php echo $this->session->flashdata('message'); ?>
        </div>
    <?php endif; ?>
<?php endif; ?>
<table class="table table-striped table-bordered">
    <tr>
        <th>No.</th>
        <th>Username</th>
        <th>Full Name</th>
        <th>Facebook</th>
        <th>Twitter</th>
        <th>Google+</th>
        <th>Register Date</th>
        <th>Last Login</th>
        <th>Avatar</th>
        <th width="5%">&nbsp;</th>
    </tr>
    <?php $num=1; foreach($user as $data){?>
    <tr>
        <td><?php  echo $num ?></td>
        <td><?php echo $data['username_user']?></td>
        <td><?php echo $data['fullname_user']?></td>
        <td><?php echo $data['fb_acc']?></td>
        <td><?php echo $data['twitter_acc']?></td>
        <td><?php echo $data['gplus_acc']?></td>
        <td><?php echo $data['register_date']?></td>
        <td><?php echo $data['last_log']?></td>
        <td><img src="<?php echo base_url()?>/Images/User_Avatar/<?php echo $data['user_ava']?>" height="50"/></td>
        <td align="center">
            <a href="<?php echo site_url("Admin/delete_user/$data[id_user]") ?>" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></a>
        </td>
    </tr>
    <?php $num++; } ?>
</table>